Trend Hunter [BETA]This is in BETA now. Im reaching out to coders for some assistance on my "take profit" targets. As you can see, these are obviously plotshapes, How would I go about setting take profits for backtesting purposes? Thanks in advance
Cerca negli script per "take profit"
AutoTrendTrader Strategy"The Trend is your Friend" is a popular quote and Day-Traders, as well as long-term Investors, build their Strategies on top of this Mantra.
Leverage this Principle by using AutoTrendTrader to ride the Trend and let your Profits run!
Get Email-Alerts with your customized buy and sell signals, or use autoview to trigger and exit the trades.
Features:
Reliable Detection of Up- and Downtrends - this will enable you to enter strong Trends at the right time
Partial Profit Taking - Configure your perfect Mix of taking profits early vs. letting profits run
Reversing Signals - Limit your Draw-Down
Proprietary Algorithms combined with multiple Confirmations via other Technical Indicators
What's included:
AutoTrendTrader Study (generate Signals)
AutoTrendTrader Strategy (backtest your Settings)
SteveLeoStrat v275%+ accuracy on BTC/USD, IOTA/USD and a few others I have manually tested, only for 30M or 1H timeframe.
If you only take the strongest signals by using human judgement and other indicators, easily rises to 90% accuracy.
Backtested with 3 years of data and there is no repainting. You can use the replay data to check.
I also added an alert function so you can notify yourself when a long or short pops up.
Enter on long when entry is below the green line by at least 1%
Take profit when it reaches the green line or above.
Not all signals are equal. Use with MACD Crossover & Support + Resistance lines and you have a highly profitable system, plus there are other tricks I have discovered from fiddling with it for a long time.
Currently in beta testing for a paid educational program I am creating - can post below if you are interested and I will inform you when it launches.
nATR Reversal StrategyATR Reversal Strategy that has been extended to add an additional ATR based stoploss, trailing stop and take profit.
This script was developed as part of a professional development service. It is published for customer verification and acceptance.
For people interested in professional services, please visit the backtest-rookies (.com) website.
Features
nATR based Stop Loss added
nATR based Trailing stop added
nATR based Take profit added
Switches for each exit type to turn them on or off in the strategy
Plotting of all exit levels on the chart
Prevent reversing when using newly added exits.
Allow reversing when all exit switches are off and opposite long/short conditions are met.
The Always Winning Holy Grail Strategy - Not (by ChartArt)How to win all the time if 1+1 = 2
The most upvoted strategies on Tradingview are those which seemingly work 100%, but they actually don't at all because they are repainting and would not work in live trading reality. They are using the multi-time-frame strategy testing bug and thereby trade during the backtest on close prices before the bar has closed in reality.
Top list of these cheating repainting strategies:
1569 upvotes ANN Strategy
877 upvotes Vdub FX SniperVX3 Strategy
481 upvotes Get Trend Strategy
I guess there are much more strategies among the top upvoted strategies on Tradingview which cheat with a multi-time-frame close price, but three examples are enough. The ANN Strategy uses the daily close price as multi-time-frame and cheats with that. The Vdub FX SniperVX3 Strategy uses the half-day (720 minute) close price to cheat and the Get Trend Strategy uses the 160 minute bar close for repaint cheating (at least here the author of this strategy explains that his strategy is only demo and would not work, which might be the reason why it has 1000 less upvotes than the ANN Strategy. I already wrote months ago a comment underneat these strategies to explain this issue but it hasn't stopped these strategies from getting more and more upvotes and staying in the top list.
I thought this way of cheating is lame, so I invented a new way to cheat my way to seemingly reach 100% profitable trades all the time by going long if 1+1 is equal to 2. Welcome to super wide stop losses. Simply use a extreme unrealistic large stop loss and take profit after a realistic amount of pips and according to Tradingview's current backtest module you win 100% all the time. Yay! :)
My recommendation for the Tradingview team is to add a function to let the user define a stop out and margin call level and maybe set a realistic setting as default, like 100%.
Please don't trade with this strategy!
How to automate this strategy for free using a chrome extension.Hey everyone,
Recently we developed a chrome extension for automating TradingView strategies using the alerts they provide. Initially we were charging a monthly fee for the extension, but we have now decided to make it FREE for everyone. So to display the power of automating strategies via TradingView, we figured we would also provide a profitable strategy along with the custom alert script and commands for the alerts so you can easily cut and paste to begin trading for profit while you sleep.
Step 1:
You are going to need to download the Chrome Extension called AutoView. You can get the extension for free by following this link: bit.ly ( I had to shorten the link as it contains Google and TV automatically converts it to a symbol)
Step 2: Go to your chrome extension page, and under the new extension you'll see a "settings" button. In the setting you will have to connect and give permission to the exchange 1broker allowing the extension to place your orders automatically when triggered by an alert.
Step 3: Setup the strategy and custom script for the alerts in TradingView. The attached script is the strategy, you can play with the settings yourself to try and get better numbers/performance if you please.
This following script is for the custom alerts:
//@version=2
study("4All-Alert", shorttitle="Alerts")
src = close
len = input(4, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
rsin = input(5)
sn = 100 - rsin
ln = 0 + rsin
short = crossover(rsi, sn) ? 1 : 0
long = crossunder(rsi, ln) ? 1 : 0
plot(long, "Long", color=green)
plot(short, "Short", color=red)
Now that you have the extension installed, the custom strategy and alert scripts in place, you simply need to create the alerts.
To get the alerts to communicate with the extension properly, there is a specific syntax that you will need to put in the message of the alert. You can find more details about the syntax here : gist.github.com
For this specific strategy, I use the Alerts script, long/short greater than 0.9 on close.
In the message for a long place this as your message:
Long
c=order b=short
c=position b=short l=200 t=market
b=long q=0.01 l=200 t=market tp=13 sl=25
and for the short...
Short
c=order b=long
c=position b=long l=200 t=market
b=short q=0.01 l=200 t=market tp=13 sl=25
If you'll notice in my above messages, compared to the strategy my tp and sl (take profit and stop loss) vary by a few pips. This is to cover the market opens and spread on 1broker. You can change the tp and sl in the strategy to the above and see that the overall profit will not vary much at all.
I hope this all makes sense and it is enough to not only make some people money, but to show the power of coming up with your own strategy and automating it using TradingView alerts and the free Chrome Extension AutoView.
ps. I highly recommend upgrading your TradingView account so you have access to back testing and multiple alerts.
There is really no reason you won't cover the cost and then some on a monthly basis using the tools provided.
Best of luck and happy trading.
Note: The extension currently allows for automation on 2 exchanges; 1broker and Okcoin. If you do not have accounts there, we'd appreciate you signing up using our referral links.
www.okcoin.com
1broker.com
Supertrend AT v1.0### Overview
"Supertrend AT v1.0" is an automated trading strategy based on the Supertrend indicator, designed to detect trend reversals and execute entries accordingly. This script supports both **long and short** positions and includes customizable risk management features such as **RPT (Risk Per Trade)** and **RR (Risk/Reward ratio)**.
### Key Features
- 📈 **Supertrend-based Entry Logic**:
- Enters a **long position** when the Supertrend flips from red to green (downtrend → uptrend).
- Enters a **short position** when the Supertrend flips from green to red (uptrend → downtrend).
- 💰 **Auto-Calculated Position Sizing**:
- Quantity is automatically calculated to ensure that loss per trade (including commission) matches the specified risk percentage (RPT).
- 🎯 **Take-Profit and Stop-Loss**:
- Both targets are dynamically computed using the RR ratio and account for commission fees.
- 📊 **Visual Elements**:
- Entry, stop, and target prices are plotted on the chart.
- Real-time PnL and account equity are shown in a dashboard.
- Optional on-screen README guide explains the strategy and key terms.
### Inputs
- **RPT (%)**: Risk per transaction (based on account equity).
- **RR**: Reward-to-risk ratio.
- **Commission (%)**: Used in all calculations (must match the Properties tab).
- **Supertrend Settings**: Adjustable factor and length.
- **Market Decimal Places**: For accurate quantity rounding according to exchange rules.
- **Time Filter**: Set start and end time for trading logic activation.
### Risk Management Logic
This strategy calculates trade size and targets using a formula that considers both the price distance between entry and stop-loss and the effect of commission fees. This ensures:
- Consistent risk across trades
- Realistic take-profit levels
- Exchange-compliant order quantities
### Notes
- ⚠️ Be sure to set the **correct commission rate** and **decimal precision** for your exchange.
- ⚠️ If trade quantity is smaller than your exchange’s minimum unit, orders may be rejected.
- 🔧 For strategy to behave as intended in automation, double-check both **input tab** and **Properties tab** settings.
### Disclaimer
This strategy is for educational and research purposes only. It does not constitute financial advice. Always test on paper before using in a live environment.
XAUUSD SMC Strategy (FVG + BoS)This advanced TradingView strategy is built for serious traders who follow Smart Money Concepts (SMC), with a special focus on Fair Value Gaps (FVG) and Break of Structure (BoS). The script automates trade entries and visual signals based on clean price action, while also allowing for performance backtesting through the built-in Strategy Tester.
The purpose of this script is to combine high-probability SMC signals with a clear and flexible backtest engine. Traders can visually confirm institutional moves (like imbalances and structure breaks) while simultaneously analyzing strategy performance, risk-reward, and execution logic — all from one chart.
⚙️ Key Features
FVG Detection: Automatically identifies bullish and bearish fair value gaps, highlighting imbalance zones between institutional buying and selling activity.
Break of Structure (BoS): Clearly shows bullish and bearish structure breaks, helping traders confirm directional bias and spot trend shifts with clarity.
Trade Execution Logic: Designed with actual strategy.entry() and strategy.exit() functions, this script simulates trades using risk-controlled logic with stop loss and take profit targeting.
Spaced Signal Visualization: Avoids chart clutter by spacing FVG and BoS signals, making the visual output clean and readable — even on fast-moving charts like XAUUSD.
Risk-Reward Customization: Easily set your own risk:reward ratio and stop-loss buffer, ensuring each trade is simulated according to your personal strategy or trading plan.
Cool-Down System: Add a delay between trades using the “Bars Between Trades” setting to prevent overtrading during volatile periods.
Live and Historical Insights: Signals appear in real-time, while also being plotted historically — making it easy to scroll back and study how the market behaved under this logic.
Fully Editable Parameters: Customize FVG size, structure lookback, spacing intervals, and more to fit your unique interpretation of SMC methodology.
🧠 How It Works
This strategy combines two key concepts:
FVG (Fair Value Gaps): Price zones where the market moved too quickly and left an imbalance between buyers and sellers. These gaps often act as magnets for price or areas of reversal.
BoS (Break of Structure): Points where the price breaks through a significant high or low, indicating a potential shift in market direction.
When both FVG and BoS align under certain conditions — and the cooldown requirement is satisfied — the strategy places a trade. A take profit and stop loss are automatically applied based on your inputs.
📈 Practical Use Cases
Trend Confirmation: Use BoS signals to validate trend continuation trades, especially when FVG confirms the imbalance.
Reversal Zones: Spot potential turning points when price fills an FVG and breaks previous structure in the opposite direction.
Backtest SMC Logic: Validate your theory by testing this strategy over historical XAUUSD data using real stop loss / take profit logic.
Refine Entry Timing: Study how structure breaks and FVGs align in different timeframes to improve entry precision.
💡 Best For
Traders learning or mastering Smart Money Concepts
Price action purists who avoid indicators
XAUUSD scalpers, day traders, or swing traders
Strategy developers who want visual + backtested confirmation
📌 Notes
The default strategy places trades every 10 candles to ensure the engine runs — replace this with your refined FVG + BoS logic as needed.
Works best on Gold (XAUUSD) 4H, 1H, or 15m timeframes depending on volatility and structure spacing.
🔒 Disclaimer
This strategy is for educational purposes only. It does not constitute financial advice. Always test and validate any trading logic before applying it to a live market. Trading carries risk — use proper risk management.
J-Lines Ribbon • 4-Cycle Engine (CHOP / ANTI / LONG / SHORT)📈 J-Lines Ribbon • 4-Cycle Engine (CHOP / ANTI / LONG / SHORT)
Version: Pine Script v6
Author: Thomas Lee
Category: Trend-Following / Mean Reversion / Scalping
Timeframes: Optimized for 1–5m (but adaptable) Seems to work best on Fibb Time
🧠 Strategy Overview:
The J-Lines Ribbon 4-Cycle Engine is a precision trading algorithm designed to navigate complex market microstructure across four adaptive states:
🔁 CHOP (No Trade / Flatten)
🟡 ANTI (Legacy Layer / Under Development)
🟢 LONG (Trend-Continuation & Rebounds)
🔴 SHORT (Inverse Trend-Continuation & Rebounds)
It combines a multi-layer EMA ribbon, ADX-based CHOP detection, and smart pivot analysis to dynamically shift between market modes, entering and exiting trades with surgical precision.
🔍 Core Features:
Dynamic Market Cycle Detection
Auto-classifies each bar into one of the 4 market states using ADX + EMA 72/89 crossovers.
One-Shot Entries & Rebound Logic
Initiates base entries at the start of new trend cycles. Re-entries (ReLong/ReShort) trigger on EMA 72 and EMA 126 pullbacks with momentum resumption.
CHOP State Autopilot
Automatically closes open positions when CHOP begins, preventing sideways market exposure.
Precision Take-Profits & Pivots-Based Stop Losses
Real-time adaptive exits using pivot high/low swing points as dynamic SL/TP anchors.
Customizable Parameters
Pivot length (left/right)
ADX thresholds
Rebound tolerance bands
Ribbon display and state-labels
📊 Indicator Components:
📏 EMA Ribbon: 72, 89, 126, 267, 360, 445
📉 ADX Filter: Filters out sideways noise, confirms directional bias
🔁 Crossover Events: Detects trend initiations
🌀 Cycle Labels: Real-time visual display of current market state
🛠️ Ideal Use Cases:
Scalping volatile markets
Automated strategy testing & optimization
Entry/exit signal confirmation for discretionary traders
Trend filtering in algorithmic stacks
⚠️ Notes:
ANTI cycle logic is scaffolded but not fully deployed in this version. It will be extended in a future release for deep mean-reversion detection.
Tailor ADX floor and pivot sensitivity to your specific asset and timeframe for optimal performance.
MVO - MA Signal StrategyStrategy Description: MA Signal Strategy with Heikin Ashi, Break-even and Trailing Stop
⸻
🔍 Core Concept
This strategy enters long or short trades based on Heikin Ashi candles crossing above or below a moving average (MA), with optional confirmation from the Money Flow Index (MFI). It includes:
• Dynamic stop loss and take profit levels based on ATR
• Optional break-even stop adjustment
• Optional trailing stop activation after breakeven
• Full visual feedback for trades and zones
⸻
⚙️ Indicators Used
• Heikin Ashi Candles: Smooth price action to reduce noise.
• Simple Moving Average (MA): Determines trend direction.
• Average True Range (ATR): Sets volatility-based SL/TP.
• Money Flow Index (MFI): Optional momentum filter for entries.
⸻
📈 Trade Entry Logic
✅ Long Entry:
Triggered if:
• Heikin Ashi close crosses above the MA
or
• MFI is below 20 and Heikin Ashi close is above the MA
❌ Short Entry:
Triggered if:
• Heikin Ashi close crosses below the MA
or
• MFI is above 90 and Heikin Ashi close is below the MA
⸻
🛑 Stop Loss & Take Profit
• SL is set using riskMult * ATR
• TP is set using rewardMult * ATR
Example:
• If ATR = 10, riskMult = 1, rewardMult = 5
→ SL = 10 points, TP = 50 points from entry
⸻
⚖️ Break-even Logic (Optional)
• If price moves in your favor by breakevenTicks * ATR, SL is moved to entry price.
• Enabled via checkbox Enable Break Even.
⸻
📉 Trailing Stop Logic (Optional)
• Once break-even is hit, a trailing stop starts moving behind price by trailATRmult * ATR.
• Trailing stop only activates after break-even is reached.
• Enabled via checkbox Enable Trailing Stop.
📊 Visual Elements
• Heikin Ashi candles are drawn on the main chart.
• Trade zones are shaded between SL and TP during open trades.
• Lines mark Entry, SL, TP, Break-even trigger.
• Markers show entries and exits:
• Green/red triangles = long/short entries
• ✅ = Take profit hit
• ❌ = Stop loss hit
✅ Best Use Case
• Trending markets with strong pullbacks
• Works on multiple timeframes
• Better suited for assets with consistent volatility (ATR behavior)
Infalible Universal 2:1 Estrategia🔹 "Infalible Universal 2:1 Strategy" – Optimized for All Markets and Timeframes
This strategy combines proven technical indicators with a dynamic risk management model to deliver consistent and optimized entries, especially on lower timeframes like 5 and 15 minutes.
Core Components:
📈 Entry Signals:
Trades are triggered when a fast Simple Moving Average (SMA) crosses over or under a slow SMA, with confirmation from a strong trend (ADX filter).
🎯 Dynamic Take Profit and Stop Loss:
Positions are exited based on a 2:1 Risk/Reward ratio, calculated using the current Average True Range (ATR). This allows the system to adapt to market volatility and remain effective across any asset.
🧱 Visual SL/TP Zones:
Colored rectangles highlight the Stop Loss (red) and Take Profit (green) areas on the chart, helping traders clearly visualize risk and reward at every entry.
🧠 Clean and Effective Logic:
No repainting. No lagging signals. Fully backtestable. Alerts included for long and short entries.
Whether you're trading forex, crypto, indices, or stocks, this universal strategy adapts to market behavior and focuses on consistent execution through disciplined risk management.
HSI1! First 30m Candle Strategy (15m Chart)## HSI1! First 30-Minute Candle Breakout Strategy (15m Chart) — Description
### Overview
This strategy is designed for trading **Hang Seng Index (HSI) Futures** on a 15-minute chart. It uses the price range established during the first 30 minutes of the Hong Kong main session (09:15–09:44:59) to define key breakout levels for a systematic trade entry each day.
### How the Strategy Works
#### 1. Reference Candle Period
- **Aggregation Window:** The strategy monitors the first two 15-minute bars of the session (09:15:00–09:44:59 HKT).
- **Range Capture:** It records the highest and lowest prices (the "reference high/low") during this window.
#### 2. Trade Setup
- After the 09:45 bar completes, the reference range is locked in.
- Throughout the rest of the trading day (within session hours), the strategy looks for breakouts beyond the reference range.
#### 3. Entry Rules
- **Long Entry (Buy):**
- Triggered if price rises to or above the reference high.
- Only entered if the user's settings permit "Buy Only" or "Both".
- **Short Entry (Sell):**
- Triggered if price falls to or below the reference low.
- Only entered if the user's settings permit "Sell Only" or "Both".
- **Single trade per day:**
- Once any trade executes, no additional trades are opened until the next session.
#### 4. Exit Rules
- **Take Profit (TP):**
- Target profit is set to a distance equal to the initial range added above the long entry (or subtracted below the short entry).
- Example: For a 100-point range, a long trade targets entry + 100 points.
- **Stop Loss (SL):**
- Longs are stopped out if price falls back to the session's reference low; shorts are stopped out if price rallies to the reference high.
#### 5. Session Control
- Active only within the regular day session (09:15–12:00 and 13:00–16:00 HKT).
- Trade tracking resets each new trading day.
#### 6. Trade Direction Manual Setting
- A user input allows restriction to "Buy Only", "Sell Only" or "Both" directions, providing discretion over daily bias.
### Example Workflow
| Step | Action |
|---------------------------|-------------------------------------------------------------------------|
| 09:15–09:44 | Aggregate first two 15m candles; record daily high/low |
| After 09:45 | Wait for a breakout (price crossing either the high or the low) |
| Long trade triggered | Enter at the reference high, target is "high + range", SL is at the low |
| Short trade triggered | Enter at the reference low, target is "low - range", SL at the high |
| Trade management | No more trades for the day, regardless of further breakouts |
| End of session (if open) | Trades may be closed per further logic or left to strategy to handle |
### Key Features and Benefits
- **Discipline:** Only one trade per day, minimizing overtrading.
- **Clarity:** Transparent entry/exit rules; no discretionary execution.
- **Flexibility:** User can bias system to buy-only, sell-only, or allow both, depending on trend or personal view.
- **Simple Risk Control:** Pre-defined stop loss and profit target for every trade.
- **Works best in:** Trending, breakout-prone markets with a history of impulsive moves early in the session.
This strategy is ideal for systematic traders looking to capture the Hang Seng's early session momentum, with robust rule-based management and minimal intervention.
The Trend Bot🤖 The Trend Bot — Advanced Trend Following Strategy
The Trend Bot is a sophisticated algorithmic trading strategy designed to capitalize on market trends by combining multiple timeframe analysis with dynamic signal generation. This strategy is built for traders who want to follow the path of least resistance while maintaining disciplined risk management.
✨ Key Features:
Multi-Timeframe Confluence : Utilizes higher timeframe trend analysis to filter trades and ensure alignment with the broader market direction
Dynamic Signal System : Generates precise entry signals based on momentum shifts and trend confirmation
Intelligent Take Profit : Automatically identifies optimal exit points based on trend reversal patterns
Real-Time Performance Tracking : Built-in performance table displaying key metrics including net profit, win rate, maximum drawdown, and profit factor
Customizable Visual Elements : Fully customizable colors and display options for personalized chart presentation
📊 What It Does:
The Trend Bot monitors market structure and momentum to identify high-probability trading opportunities. It combines short-term price action signals with longer-term trend analysis to ensure trades are taken in the direction of the prevailing market trend. The strategy automatically manages both entries and exits, removing emotional decision-making from your trading process.
🎯 Perfect For:
Swing traders looking for trend-following opportunities
Traders who prefer systematic, rule-based approaches
Those seeking to reduce emotional trading decisions
Both manual and automated trading setups
⚙️ Customization Options:
Adjustable timeframe filters for different trading styles
Customizable visual alerts and notifications
Flexible display settings for optimal chart presentation
Color-coded trend and signal visualization
📈 Built-in Analytics:
Track your strategy performance with real-time metrics including profit factor, win rate, total trades, and maximum drawdown — all displayed in an elegant, customizable table directly on your chart.
Note: Past performance does not guarantee future results. Always test strategies thoroughly and manage risk appropriately.
xGhozt EVWMA Cross StrategyThis strategy leverages a single **Elastic Volume Weighted Moving Average (EVWMA)** to identify trend-following opportunities. It generates trade signals when the asset's **closing price crosses the EVWMA**.
### **How it Works**
* **Entry**: After a price-EVWMA cross (above for long, below for short), the strategy waits for a customizable number of `Bars to Wait After Cross` as a confirmation filter before entering a trade.
* **Exit (Take Profit)**: Once a position is open, it automatically exits the trade if the price achieves a customizable `Take Profit at Price Change (%)` relative to the entry price.
### **Specs & Inputs**
* **Indicator Type**: Trend-following strategy based on EVWMA.
* **Slow Sum Length**: EVWMA calculation period.
* **Bars to Wait After Cross**: Confirmation delay in bars after a cross before entry.
* **Take Profit at Price Change (%)**: Percentage gain from entry at which to close the position.
### **Purpose**
Designed for backtesting and automated trading, this strategy aims to capture directional price movements with a built-in confirmation delay and a fixed profit target.
LANZ Strategy 6.0 [Backtest]🔷 LANZ Strategy 6.0 — Precision Backtesting Based on 09:00 NY Candle, Dynamic SL/TP, and Lot Size per Trade
LANZ Strategy 6.0 is the simulation version of the original LANZ 6.0 indicator. It executes a single LIMIT BUY order per day based on the 09:00 a.m. New York candle, using dynamic Stop Loss and Take Profit levels derived from the candle range. Position sizing is calculated automatically using capital, risk percentage, and pip value — allowing accurate trade simulation and performance tracking.
📌 This is a strategy script — It simulates real trades using strategy.entry() and strategy.exit() with full money management for risk-based backtesting.
🧠 Core Logic & Trade Conditions
🔹 BUY Signal Trigger:
At 09:00 a.m. NY (New York time), if:
The current candle is bullish (close > open)
→ A BUY order is placed at the candle’s close price (EP)
Only one signal is evaluated per day.
⚙️ Stop Loss / Take Profit Logic
SL can be:
Wick low (0%)
Or dynamically calculated using a % of the full candle range
TP is calculated using the user-defined Risk/Reward ratio (e.g., 1:4)
The TP and SL levels are passed to strategy.exit() for each trade simulation.
💰 Risk Management & Lot Size Calculation
Before placing the trade:
The system calculates pip distance from EP to SL
Computes the lot size based on:
Account capital
Risk % per trade
Pip value (auto or manual)
This ensures every trade uses consistent, scalable risk regardless of instrument.
🕒 Manual Close at 3:00 p.m. NY
If the trade is still open by 15:00 NY time, it will be closed using strategy.close().
The final result is the actual % gain/loss based on how far price moved relative to SL.
📊 Backtest Accuracy
One trade per day
LIMIT order at the candle close
SL and TP pre-defined at execution
No repainting
Session-restricted (only runs on 1H timeframe)
✅ Ideal For:
Traders who want to backtest a clean and simple daily entry system
Strategy developers seeking reproducible, high-conviction trades
Users who prefer non-repainting, session-based simulations
👨💻 Credits:
💡 Developed by: LANZ
🧠 Logic & Money Management Engine: LANZ
📈 Designed for: 1H charts
🧪 Purpose: Accurate simulation of LANZ 6.0's NY Candle Entry system
MNQ 1H Liquidity + MTF BotThis Pine Script is a 1-hour trading strategy for MNQ futures that uses higher-timeframe confirmation, liquidity grabs, MACD alignment, and ATR-based targets to identify high-probability trades. The strategy only triggers entries during specific hours and includes a simple risk-reward structure with defined stop loss and take profit levels.
**Buy (Long) Conditions:**
* Current hour is within allowed trading window
* 4H price is above 4H EMA 200
* 4H MACD line is above its signal
* 1H MACD is bullish
* Either a breakout above recent highs or a liquidity grab below recent lows
* No existing long position
**Sell (Short) Conditions:**
* Current hour is within allowed trading window
* 4H price is below 4H EMA 200
* 4H MACD line is below its signal
* 1H MACD is bearish
* Either a breakdown below recent lows or a liquidity grab above recent highs
* No existing short position
**Core Strategy Components:**
* Multi-timeframe trend alignment (4H MACD + EMA 200)
* 1H MACD for local momentum
* Liquidity grab detection using price structure
* ATR-based stop loss and take profit
* Time window filter for active trading hours
* Fixed percentage position sizing
🚀 QuantSignals AI Trend Strategy 15M🚀 QuantSignals AI Trend Strategy 15M — Dominate Intraday Trends with AI Power
🔒 Protected Source | 📈 Verified Performance | ⏱ Optimized for 15M Charts
🔥 Overview
Welcome to the QuantSignals AI Trend Strategy — an institutional-grade, AI-powered trend-following algorithm built for traders who demand performance, clarity, and edge.
Engineered for 15-minute charts, this strategy is the result of advanced AI research, trading expertise, and real-world backtesting. It delivers high-quality trend entries, dynamic risk management, and a fully visual performance dashboard — all in a clean, no-nonsense package.
🔑 Perfect for crypto, forex, and major indices.
💡 Key Features
✅ AI-Driven Signal Engine
Detects strong momentum shifts & breakouts
Smart filtering reduces false signals
Sensitivity control to match your style
✅ Institutional-Level Risk Management
Dynamic stop loss, take profit, and trailing stop
% equity risk-based position sizing
Full exit logic for both long and short positions
✅ Smart Support & Resistance
Auto-calculated pivot levels
Visual zones for reversals and breakouts
✅ Visual Performance Dashboard
Net profit, win rate, profit factor
Current trend strength and market condition
Real-time signal status & open position
✅ Multi-Timeframe Sync (Premium Logic)
Smart confirmation from higher timeframes
Unlock full power inside the Discord community
📊 Why Traders Love It
🔹 Beginner-Friendly: Visual signals, easy inputs, auto-risk calc
🔹 Backtested & Proven: Built-in strategy tester integration
🔹 Customizable: Tweak signal sensitivity, filter strength, session hours
🔹 Premium Upgrade Ready: This free version is just the beginning...
🎁 What You Get
🔓 Protected script (source hidden)
🎯 Full visual trade entries & exits
⚡ Real-time alerts (BUY / SELL / FLAT)
💰 Built-in dashboard to track live P&L
📚 In-code guidance and intuitive parameters
💎 Premium Version Includes:
Full source code access
Advanced AI signal layers (order flow, sentiment, etc.)
Multi-asset correlation
Higher timeframe confirmation
Exclusive premium strategies (85%+ win rate)
Live alerts across assets (crypto, stocks, forex)
➡️ Join Our Community: 🌐 quantsignals.xyz
➡️ Discord Access: 📱 /quantsignals
📸 Screenshots (Suggested Uploads for Listing)
Full-chart view with QS trend lines, support/resistance
Close-up of BUY/SELL signals
Strategy Tester tab showing win rate, net profit
Dashboard with signal quality, trend status, and profit factor
Visual of dashboard in corner with active position info
🧠 Ideal For:
Day traders seeking high-probability signals
Quant traders needing trend logic for automation
Crypto & forex traders focused on short-term moves
Anyone ready to upgrade their edge with AI-based systems
✅ TradingView Requirements
Strategy script, not indicator
Works on any 15-minute chart
Protected source (no code exposed)
🚨 Risk Disclaimer
All trading involves risk. Historical performance is not indicative of future results. This script is a tool — use it with proper risk management and discretion.
MACD Liquidity Tracker Strategy [Quant Trading]MACD Liquidity Tracker Strategy
Overview
The MACD Liquidity Tracker Strategy is an enhanced trading system that transforms the traditional MACD indicator into a comprehensive momentum-based strategy with advanced visual signals and risk management. This strategy builds upon the original MACD Liquidity Tracker System indicator by TheNeWSystemLqtyTrckr , converting it into a fully automated trading strategy with improved parameters and additional features.
What Makes This Strategy Original
This strategy significantly enhances the basic MACD approach by introducing:
Four distinct system types for different market conditions and trading styles
Advanced color-coded histogram visualization with four dynamic colors showing momentum strength and direction
Integrated trend filtering using 9 different moving average types
Comprehensive risk management with customizable stop-loss and take-profit levels
Multiple alert systems for entry signals, exits, and trend conditions
Flexible signal display options with customizable entry markers
How It Works
Core MACD Calculation
The strategy uses a fully customizable MACD configuration with traditional default parameters:
Fast MA : 12 periods (customizable, minimum 1, no maximum limit)
Slow MA : 26 periods (customizable, minimum 1, no maximum limit)
Signal Line : 9 periods (customizable, now properly implemented and used)
Cryptocurrency Optimization : The strategy's flexible parameter system allows for significant optimization across different crypto assets. Traditional MACD settings (12/26/9) often generate excessive noise and false signals in volatile crypto markets. By using slower, more smoothed parameters, traders can capture meaningful momentum shifts while filtering out market noise.
Example - DOGE Optimization (45/80/290 settings) :
• Performance : Optimized parameters yielding exceptional backtesting results with 29,800% PnL
• Why it works : DOGE's high volatility and social sentiment-driven price action benefits from heavily smoothed indicators
• Timeframes : Particularly effective on 30-minute and 4-hour charts for swing trading
• Logic : The very slow parameters filter out noise and capture only the most significant trend changes
Other Optimizable Cryptocurrencies : This parameter flexibility makes the strategy highly effective for major altcoins including SUI, SEI, LINK, Solana (SOL) , and many others. Each crypto asset can benefit from custom parameter tuning based on its unique volatility profile and trading characteristics.
Four Trading System Types
1. Normal System (Default)
Long signals : When MACD line is above the signal line
Short signals : When MACD line is below the signal line
Best for : Swing trading and capturing longer-term trends in stable markets
Logic : Traditional MACD crossover approach using the signal line
2. Fast System
Long signals : Bright Blue OR Dark Magenta (transparent) histogram colors
Short signals : Dark Blue (transparent) OR Bright Magenta histogram colors
Best for : Scalping and high-volatility markets (crypto, forex)
Logic : Leverages early momentum shifts based on histogram color changes
3. Safe System
Long signals : Only Bright Blue histogram color (strongest bullish momentum)
Short signals : All other colors (Dark Blue, Bright Magenta, Dark Magenta)
Best for : Risk-averse traders and choppy markets
Logic : Prioritizes only the strongest bullish signals while treating everything else as bearish
4. Crossover System
Long signals : MACD line crosses above signal line
Short signals : MACD line crosses below signal line
Best for : Precise timing entries with traditional MACD methodology
Logic : Pure crossover signals for more precise entry timing
Color-Coded Histogram Logic
The strategy uses four distinct colors to visualize momentum:
🔹 Bright Blue : MACD > 0 and rising (strong bullish momentum)
🔹 Dark Blue (Transparent) : MACD > 0 but falling (weakening bullish momentum)
🔹 Bright Magenta : MACD < 0 and falling (strong bearish momentum)
🔹 Dark Magenta (Transparent) : MACD < 0 but rising (weakening bearish momentum)
Trend Filter Integration
The strategy includes an advanced trend filter using 9 different moving average types:
SMA (Simple Moving Average)
EMA (Exponential Moving Average) - Default
WMA (Weighted Moving Average)
HMA (Hull Moving Average)
RMA (Running Moving Average)
LSMA (Least Squares Moving Average)
DEMA (Double Exponential Moving Average)
TEMA (Triple Exponential Moving Average)
VIDYA (Variable Index Dynamic Average)
Default Settings : 50-period EMA for trend identification
Visual Signal System
Entry Markers : Blue triangles (▲) below candles for long entries, Magenta triangles (▼) above candles for short entries
Candle Coloring : Price candles change color based on active signals (Blue = Long, Magenta = Short)
Signal Text : Optional "Long" or "Short" text inside entry triangles (toggleable)
Trend MA : Gray line plotted on main chart for trend reference
Parameter Optimization Examples
DOGE Trading Success (Optimized Parameters) :
Using 45/80/290 MACD settings with 50-period EMA trend filter has shown exceptional results on DOGE:
Performance : Backtesting results showing 29,800% PnL demonstrate the power of proper parameter optimization
Reasoning : DOGE's meme-driven volatility and social sentiment spikes create significant noise with traditional MACD settings
Solution : Very slow parameters (45/80/290) filter out social media-driven price spikes while capturing only major momentum shifts
Optimal Timeframes : 30-minute and 4-hour charts for swing trading opportunities
Result : Exceptionally clean signals with minimal false entries during DOGE's characteristic pump-and-dump cycles
Multi-Crypto Adaptability :
The same optimization principles apply to other major cryptocurrencies:
SUI : Benefits from smoothed parameters due to newer coin volatility patterns
SEI : Requires adjustment for its unique DeFi-related price movements
LINK : Oracle news events create price spikes that benefit from noise filtering
Solana (SOL) : Network congestion events and ecosystem developments need smoothed detection
General Rule : Higher volatility coins typically benefit from very slow MACD parameters (40-50 / 70-90 / 250-300 ranges)
Key Input Parameters
System Type : Choose between Fast, Normal, Safe, or Crossover (Default: Normal)
MACD Fast MA : 12 periods default (no maximum limit, consider 40-50 for crypto optimization)
MACD Slow MA : 26 periods default (no maximum limit, consider 70-90 for crypto optimization)
MACD Signal MA : 9 periods default (now properly utilized, consider 250-300 for crypto optimization)
Trend MA Type : EMA default (9 options available)
Trend MA Length : 50 periods default (no maximum limit)
Signal Display : Both, Long Only, Short Only, or None
Show Signal Text : True/False toggle for entry marker text
Trading Applications
Recommended Use Cases
Momentum Trading : Capitalize on strong directional moves using the color-coded system
Trend Following : Combine MACD signals with trend MA filter for higher probability trades
Scalping : Use "Fast" system type for quick entries in volatile markets
Swing Trading : Use "Normal" or "Safe" system types for longer-term positions
Cryptocurrency Trading : Optimize parameters for individual crypto assets (e.g., 45/80/290 for DOGE, custom settings for SUI, SEI, LINK, SOL)
Market Suitability
Volatile Markets : Forex, crypto, indices (recommend "Fast" system or smoothed parameters)
Stable Markets : Stocks, ETFs (recommend "Normal" or "Safe" system)
All Timeframes : Effective from 1-minute charts to daily charts
Crypto Optimization : Each major cryptocurrency (DOGE, SUI, SEI, LINK, SOL, etc.) can benefit from custom parameter tuning. Consider slower MACD parameters for noise reduction in volatile crypto markets
Alert System
The strategy provides comprehensive alerts for:
Entry Signals : Long and short entry triangle appearances
Exit Signals : Position exit notifications
Color Changes : Individual histogram color alerts
Trend Conditions : Price above/below trend MA alerts
Strategy Parameters
Default Settings
Initial Capital : $1,000
Position Size : 100% of equity
Commission : 0.1%
Slippage : 3 points
Date Range : January 1, 2018 to December 31, 2069
Risk Management (Optional)
Stop Loss : Disabled by default (customizable percentage-based)
Take Profit : Disabled by default (customizable percentage-based)
Short Trades : Disabled by default (can be enabled)
Important Notes and Limitations
Backtesting Considerations
Uses realistic commission (0.1%) and slippage (3 points)
Default position sizing uses 100% equity - adjust based on risk tolerance
Stop-loss and take-profit are disabled by default to show raw strategy performance
Strategy does not use lookahead bias or future data
Risk Warnings
Past performance does not guarantee future results
MACD-based strategies may produce false signals in ranging markets
Consider combining with additional confluences like support/resistance levels
Test thoroughly on demo accounts before live trading
Adjust position sizing based on your risk management requirements
Technical Limitations
Strategy does not work on non-standard chart types (Heikin Ashi, Renko, etc.)
Signals are based on close prices and may not reflect intraday price action
Multiple rapid signals in volatile conditions may result in overtrading
Credits and Attribution
This strategy is based on the original "MACD Liquidity Tracker System" indicator created by TheNeWSystemLqtyTrckr . This strategy version includes significant enhancements:
Complete strategy implementation with entry/exit logic
Addition of the "Crossover" system type
Proper implementation and utilization of the MACD signal line
Enhanced risk management features
Improved parameter flexibility with no artificial maximum limits
Additional alert systems for comprehensive trade management
The original indicator's core color logic and visual system have been preserved while expanding functionality for automated trading applications.
LANZ Strategy 5.0 [Backtest]🔷 LANZ Strategy 5.0 — Rule-Based BUY Logic with Time Filter, Session Limits and Auto SL/TP Execution
This is the backtest version of LANZ Strategy 5.0, built as a strategy script to evaluate real performance under fixed intraday conditions. It automatically places BUY and SELL trades based on structured candle confirmation, EMA trend alignment, and session-based filters. The system simulates real-time execution with precise Stop Loss and Take Profit levels.
📌 Built for traders seeking to simulate clean intraday logic with fully automated entries and performance metrics.
🧠 Core Logic & Strategy Conditions
✅ BUY Signal Conditions:
Price is above the EMA200
The last 3 candles are bullish (close > open)
The signal occurs within the defined session window (NY time)
Daily trade limit has not been exceeded
If all are true, a BUY order is executed at market, with SL and TP set immediately.
🔻 SELL Signal Conditions (Optional):
Exactly inverse to BUY (below EMA + 3 bearish candles). Disabled by default.
🕐 Operational Time Filter (New York Time)
You can fully customize your intraday window:
Start Time: e.g., 01:15 NY
End Time: e.g., 16:00 NY
The system evaluates signals only within this range, even across midnight if configured.
🔁 Trade Management System
One trade at a time per signal
Trades include a Stop Loss (SL) and Take Profit (TP) based on pip distance
Trade result is calculated automatically
Each signal is shown with a triangle marker (BUY only, by default)
🧪 Backtest Accuracy
This version uses:
strategy.order() for entries
strategy.exit() for SL and TP
strategy.close_all() at the configured manual closing time
This ensures realistic behavior in the TradingView strategy tester.
⚙️ Flow Summary (Step-by-Step)
On every bar, check:
Is the time within the operational session?
Is the price above the EMA?
Are the last 3 candles bullish?
If conditions met → A BUY trade is opened:
SL = entry – X pips
TP = entry + Y pips
Trade closes:
If SL or TP is hit
Or at the configured manual close time (e.g., 16:00 NY)
📊 Settings Overview
Timeframe: 1-hour (ideal)
SL/TP: Configurable in pips
Max trades/day: User-defined (default = 99 = unlimited)
Manual close: Adjustable by time
Entry type: Market (not limit)
Visuals: Plotshape triangle for BUY entry
👨💻 Credits:
💡 Developed by: LANZ
🧠 Strategy logic & execution: LANZ
✅ Designed for: Clean backtesting, clarity in execution, and intraday logic simulation
Roboquant No-Wick Strategy V1.3This strategy is built specifically for the MNQ1! futures contract on the 15-minute timeframe. It identifies and trades a specific price action setup where candles have little to no wick (either top or bottom), indicating potential momentum continuation. The system places pending limit orders with defined stop-loss and take-profit levels based on ATR volatility.
In theory the strategy should also work on other assets & timeframes if the settings are adjusted.
🔍 Key Features:
Only runs on MNQ1! and the 15-minute chart (errors otherwise to prevent misuse).
Detects "no-wick" candles based on configurable wick and body size filters.
Supports session-based trading (default: 02:00–16:00 NY time).
Executes limit-style entries placed a set number of points away from candle levels.
Uses ATR-based stop-loss and take-profit calculations for adaptive risk control.
Cancels orders automatically after a configurable number of bars if not filled.
Built-in performance statistics table shows live metrics on strategy results.
Trade signals and SL/TP levels are plotted directly on the chart for easy visualization.
⚙️ User Inputs Include:
Candle Settings: Wick percentage, min/max body size
Risk Settings: ATR multiplier, risk/reward (TP), contract size
Strategy Settings: Session time, entry offset distance, cancel-after bars
Performance Table: Toggle visibility, starting balance for display calculations
📈 Performance Table Metrics:
Total trades
Starting and ending balance
Net return in $ and %
Win rate
Maximum drawdown (in $ and %)
⚠️ Notes:
This strategy does not repaint.
Meant for educational and research purposes only — it is not financial advice.
Results may vary based on market conditions, latency, and broker execution. Always forward-test before using in live trading.
In order to unlock the use on all assets and timeframes a password is required which is included in our premium community.
BrainPremium [Algo BOT]Brainpremium ALGO BOT: The Next Generation of Smart Trading
Brainpremium ALGO BOT combines the power of the popular Brainpremium TradingView indicator with automated trading strategies, designed to help you trade smarter and more efficiently in the markets. This advanced algorithm leverages Brainpremium's proven signals to identify potential opportunities and execute trades according to your defined risk management parameters.
Why Choose Brainpremium ALGO BOT?
- Automated Trading: Optimize your time by letting the bot execute trades for you, opening and closing positions based on your set criteria.
- Proven Signals: Relies on the reliable BUY/SELL signals from the Brainpremium indicator, ensuring you don't miss key market movements.
- Customizable Risk Management: Set your own take-profit and stop-loss levels to match your risk tolerance and protect your capital.
- Advanced Algorithm: Features an intelligent structure that adapts to market conditions and provides optimized entry/exit points.
- User-Friendly Interface: Offers easy setup and use thanks to its full integration with the TradingView platform.
How Brainpremium ALGO BOT Works
Brainpremium ALGO BOT continuously monitors signals from the Brainpremium indicator. In response to the indicator's identified buy or sell signals, it automatically generates orders based on your pre-defined strategy and risk parameters. This helps you apply a disciplined trading strategy, minimizing emotional decisions.
Getting Started
To start using our bot, follow these simple steps:
1- Add the Brainpremium ALGO BOT to your TradingView charts.
2- Personalize your strategy and risk parameters (e.g., lot size, take-profit/stop-loss levels) in the settings menu.
3- Use the backtesting feature to review its performance based on historical data and optimize your strategy.
4- Set up your alarm and notification settings to stay informed about trades.
Disclaimer: Past performance is not indicative of future results. Algorithmic trading can involve high risk and may lead to the loss of a portion or all of your invested capital. Always conduct your own research and consult with your financial advisor.
거래량 지표 전략 (최종)"Leverage 100x, 10% of capital committed, 0.3% profit target, 0.2% stop loss."
레버리지 100배 이용, 10프로 자본금 투입, 0.3프로 수익 , 0.2프로 손해
"Volume Indicator Strategy (Final)" Summary
This Pine Script strategy is designed to integrate volume data from multiple cryptocurrency exchanges (Binance, Bitget, OKX, Bybit) across spot and futures markets. It then uses this consolidated volume data to identify volume spikes and apply an RSI filter to generate buy/sell signals.
Key Features and Logic:
Multi-Exchange/Asset Volume Consolidation:
Based on user settings, it fetches and sums up spot and perpetual futures volume data from Binance, Bitget, OKX, and Bybit.
It uses the request.security function to query volume data from each specified exchange.
NA (Not Available) data points are safely handled and treated as 0 to prevent calculation errors.
Volume Spike Detection:
It calculates the Simple Moving Average (avg_volume) of the combined_volume over a lookback period (default 70 bars).
A vol_7x condition is met when the combined_volume is equal to or greater than 7 times (vol_multiplier_7x, user-configurable) the avg_volume.
RSI Filter (Optional):
An RSI (Relative Strength Index) filter (enable_rsi_filter, user-configurable) can be applied in conjunction with the volume spike condition.
Short Entry Condition: vol_7x (volume spike) & price_up (current bar's close is higher than the previous close) & RSI is 73 or greater (if filter is enabled).
Long Entry Condition: vol_7x (volume spike) & price_down (current bar's close is lower than the previous close) & RSI is 28 or less (if filter is enabled).
Strategy Entry/Exit:
When entry conditions are met, the strategy enters a position at market price.
It includes a re-entry cooldown period (default 10 bars) to prevent immediate re-entry in the same direction.
Fixed Take Profit and Stop Loss percentages (0.3% Take Profit, 0.2% Stop Loss) are set to manage open positions.
Visualization:
The combined_volume is plotted as columns (plot.style_columns) in a lower pane, changing color when the 7x volume spike condition is met.
The avg_volume is plotted as a line.
Volume values on the plot (and intended for the Y-axis scale) are formatted using format=format.volume to display in K (thousands), M (millions), B (billions) units.
The chart background color changes to indicate RSI overbought (>= 70, red) and oversold (<= 30, blue) zones.
Labels are displayed on the chart for individual trade P/L (Profit/Loss), and an info panel shows the total P/L over a user-defined period.
This strategy aims to capture significant market movements by aggregating volume data across various sources and combining it with price action and momentum (RSI) analysis to generate automated trading signals.
-------------------------------------------------------------------------------------------------------------
"거래량 지표 전략 (최종)" 요약
이 전략은 여러 암호화폐 거래소(바이낸스, 비트겟, OKX, 바이비트)의 현물(Spot) 및 선물(Futures) 거래량 데이터를 통합하여 사용하는 것을 핵심으로 합니다. 통합된 거래량 데이터를 바탕으로 거래량 급등을 포착하고 RSI 필터를 적용하여 매수/매도 신호를 생성하는 전략입니다.
주요 기능 및 로직:
다중 거래소/자산 거래량 통합:
사용자 설정에 따라 바이낸스, 비트겟, OKX, 바이비트의 현물 및 선물(무기한) 거래량을 개별적으로 가져와 합산합니다.
request.security 함수를 사용하여 각 거래소의 거래량 데이터를 요청합니다.
데이터가 없는 경우(NA)는 0으로 처리하여 계산 오류를 방지합니다.
거래량 급등 감지:
통합된 거래량(combined_volume)의 lookback 기간(기본 70봉) 이동평균(avg_volume)을 계산합니다.
combined_volume이 avg_volume의 7배(vol_multiplier_7x, 사용자 설정 가능) 이상으로 급등하면 vol_7x 조건을 만족합니다.
RSI 필터 (옵션):
거래량 급등 조건과 함께 RSI(상대 강도 지수) 필터(enable_rsi_filter, 사용자 설정 가능)를 적용할 수 있습니다.
매도(Short) 진입 조건: vol_7x (거래량 급등) & price_up (현재 봉 종가가 이전 봉보다 상승) & RSI가 73 이상일 때.
매수(Long) 진입 조건: vol_7x (거래량 급등) & price_down (현재 봉 종가가 이전 봉보다 하락) & RSI가 28 이하일 때.
전략 진입/청산:
위 진입 조건이 충족되면 시장가로 포지션에 진입합니다.
동일 방향으로 10봉 이내 재진입을 제한합니다.
고정 익절(Take Profit) 및 손절(Stop Loss) 비율(각각 0.3%, 0.2%)을 설정하여 포지션을 관리합니다.
시각화:
통합 거래량(combined_volume)은 차트 하단에 막대그래프(plot.style_columns)로 표시되며, 7배 급등 시 색상이 변경됩니다.
평균 거래량(avg_volume)은 선으로 표시됩니다.
거래량 값은 format=format.volume을 사용하여 K(천), M(백만), B(십억) 단위로 간소화되어 표시됩니다.
차트 배경색으로 RSI 과매수(70 이상, 빨간색) 및 과매도(30 이하, 파란색) 구간을 시각적으로 표시합니다.
개별 거래의 P/L(손익) 라벨과 지정된 기간 동안의 총 P/L을 차트 상단에 표시합니다.
이 전략은 여러 거래소의 거래량 데이터를 취합하여 시장의 전반적인 거래 활동을 파악하고, 이를 바탕으로 특정 패턴(거래량 급등 + 가격 방향 + RSI 필터)에 따라 매매 결정을 내리도록 설계되었습니다.
Simple DCA Strategy----
### 📌 **Simple DCA Strategy with Backtest Date Filter**
This strategy implements a **Dollar-Cost Averaging (DCA)** approach for long positions, including:
* ✅ **Base Order Entry:** Starts a position with a fixed dollar amount when no position is open.
* 🔁 **Safety Orders:** Buys additional positions when the price drops by a defined percentage, increasing position size with each new entry using a multiplier.
* 🎯 **Take Profit Exit:** Closes all positions when the price reaches a profit target (in % above average entry).
* 🗓️ **Backtest Date Range:** Allows users to specify a custom start and optional end date to run the strategy only within that time window.
* 📊 **Plots:** Visualizes average entry, take profit level, and safety order trigger line.
#### ⚙️ Customizable Inputs:
* Base Order Size (\$)
* Price Deviation for Safety Orders (%)
* Maximum Safety Orders
* Order Size Multiplier
* Take Profit Target (%)
* Start and End Dates for Backtesting
This is a **long-only strategy** and is best used for backtesting performance of DCA-style accumulation under different market conditions.
----